********************************************************************************
* appendix figure 10: long run effects

********************************************************************************

cd "$main_dir/data"
use lre_m600_i250_g,clear

gen zero = 0
egen ring_fe=group(building_id l250)

reghdfe lrent zero txy_2015 txy_2016 txy_2017 txy_2018 /// 
	i.listing_bedroom i.listing_bathroom ///
	if building_sample==1 & building_built<2014 & ///
	tx250_min_number>0 & tx256_min_number>0  ///
	[aweight=building_sample_weight] ,absorb(ring_fe building_id_year) vce(cl building_id)

coefplot, ///
	keep(zero txy*) ///			
	vert ///
	rename(zero = "2014" txy_2015 = "2015" txy_2016 = "2016" txy_2017="2017" txy_2018="2018")  ///
	yline(0) xtitle(Years to treatment) ///
	ytitle("Event Study Coefficient") graphregion(color(white)) bgcolor(white) ///
	yline(0) omit
